define(['text!service/tips.html', '../service/data/tips'],
	function(viewTemplate, Tips) {
		return Piece.View.extend({
			id: 'service_tips',
			render: function() {
				$(this.el).html(viewTemplate);

				Piece.View.prototype.render.call(this);
				return this;
			},
			onShow: function() {
				//write your business logic here :)
				var windowHeight = $(window).height();
				var elTop = $("#tips").offset().top;
				var elHeight = windowHeight - elTop - 35;

				console.info(elHeight);
				$("#tips").css({
					"height": elHeight
				});
				new iScroll($("#tips")[0]);
				this.TempviewlateRender(Tips);
			},
			//模板页面渲染

			TempviewlateRender: function(data) {

				var listTemplateWiki = _.template($("#standardsTemp").html(), {
					"rows": data.rows
				});

				$("#standards").append(listTemplateWiki);



			},
		}); //view define

	});